const { invokeData } = require('./invoke.js');
const { chatData } = require('./chat');

const getData = async () => {
    const input = '你好';

    // 单次输入输出
    // console.log('content-->', await invokeData(input));

    // 问话对答形式输入输出
    await chatData(input, chunk => {
        if (chunk !== '[DONE]') {
            process.stdout.write(chunk);
        }
    });
};

getData();
